package com.cyyz.service;

import com.cyyz.entity.Type;
import com.github.pagehelper.Page;

import java.awt.print.Pageable;
import java.util.List;

/**
 * @ClassName TypeService
 * @Description TODO
 * @Author 简笔轩客
 * @Date 2020/5/30 18:10
 * @Version 1.0
 */
public interface TypeService {

    int saveType(Type type);

    Type getType(Long id);

    List<Type>getAllType();

    List<Type> getAllTypeAndBlog();

    Type getTypeByName(String name);

    int updateType(Type type);

    void deleteType(Long id);
}
